package com.pactera.homework.first.method3;

import org.springframework.stereotype.Component;

/**
 * @Description: TODO
 * @Author: hejiayao
 * @CreateDate: 2022/12/8 15:42
 * @UpdateUser: hejiayao
 * @UpdateDate: 2022/12/8 15:42
 * @className: Somebody
 * @Package : com.pactera.homework.first
 * @Version: 1.0
 */
@Component("lihua")
public class Somebody {
    private HWPhone hwPhone;

    public Somebody(HWPhone hwPhone) {
        this.hwPhone = hwPhone;
    }

    public void usePhone() {
        hwPhone.call();
    }
}